﻿using System.Xml.Serialization;

namespace SelfService.HaiTai.Models.Appointment;

[XmlRoot("res")]
public class DoctorInfoResponse
{
    /// <summary>
    /// Example: 0
    /// </summary>
    [XmlElement("resultCode")]
    public string ResultCode { get; set; }

    /// <summary>
    /// Example: 成功
    /// </summary>
    [XmlElement("resultDesc")]
    public string ResultDesc { get; set; }

    [XmlElement("regInfo")]
    public List<RegInfo> RegInfo { get; set; }
}

public class RegInfo
{
    /// <summary>
    /// Example: 7922
    /// </summary>
    [XmlElement("doctorId")]
    public int DoctorId { get; set; }

    /// <summary>
    /// Example: 赵家祥
    /// </summary>
    [XmlElement("doctorName")]
    public string DoctorName { get; set; }

    /// <summary>
    /// Example: 233
    /// </summary>
    [XmlElement("doctorLevelCode")]
    public string DoctorLevelCode { get; set; }

    /// <summary>
    /// Example: 主治医师
    /// </summary>
    [XmlElement("doctorLevel")]
    public string DoctorLevel { get; set; }

    /// <summary>
    /// Example: 
    /// </summary>
    [XmlElement("description")]
    public string Description { get; set; }

    [XmlElement("scheduleInfo")]
    public List<ScheduleInfo> ScheduleInfo { get; set; }
}

public class ScheduleInfo
{
    /// <summary>
    /// Example: 1035
    /// </summary>
    [XmlElement("deptId")]
    public int DeptId { get; set; }

    /// <summary>
    /// Example: 专家门诊
    /// </summary>
    [XmlElement("deptName")]
    public string DeptName { get; set; }

    /// <summary>
    /// Example: 2023-07-04
    /// </summary>
    [XmlElement("regDate")]
    public string RegDate { get; set; }

    /// <summary>
    /// Example: 0
    /// </summary>
    [XmlElement("shiftCode")]
    public int ShiftCode { get; set; }

    /// <summary>
    /// Example: 上午
    /// </summary>
    [XmlElement("shiftName")]
    public string ShiftName { get; set; }

    /// <summary>
    /// Example: 08:00
    /// </summary>
    [XmlElement("startTime")]
    public string StartTime { get; set; }

    /// <summary>
    /// Example: 12:00
    /// </summary>
    [XmlElement("endTime")]
    public string EndTime { get; set; }

    /// <summary>
    /// Example: 421651
    /// </summary>
    [XmlElement("scheduleId")]
    public int ScheduleId { get; set; }

    /// <summary>
    /// Example: 1
    /// </summary>
    [XmlElement("regStatus")]
    public int RegStatus { get; set; }

    /// <summary>
    /// Example: 48
    /// </summary>
    [XmlElement("regTotalCount")]
    public int RegTotalCount { get; set; }

    /// <summary>
    /// Example: 48
    /// </summary>
    [XmlElement("regLeaveCount")]
    public int RegLeaveCount { get; set; }

    /// <summary>
    /// Example: 550
    /// </summary>
    [XmlElement("regFee")]
    public int RegFee { get; set; }

    /// <summary>
    /// Example: 
    /// </summary>
    [XmlElement("treatFee")]
    public string TreatFee { get; set; }

    /// <summary>
    /// Example: 1
    /// </summary>
    [XmlElement("isTimeReg")]
    public int IsTimeReg { get; set; }
}
